/*==============================================================================
**                                  
**                      Proprietary - Copyright (C) 2013
**------------------------------------------------------------------------------
** Supported MCUs      : STM32F
** Supported Compilers : ARM GCC
**------------------------------------------------------------------------------
** File name         : timer.h
**
** Module name       : Hardware Timer
**
**
** Summary: 
**
**= History ====================================================================
** 00.00.01 24/1/2014 Cuong Chu
** - Creation
===============================================================================*/
#ifndef __DV_TIM_H__
#define __DV_TIM_H__
/*******************************************************************************/
/* INCLUSIONS                                                                  */
/*******************************************************************************/
#include "stdint.h"
#include "stm32f10x.h"
/*******************************************************************************/
/* DECLARATION OF GLOBAL FUNCTIONS                                             */
/*******************************************************************************/
/***********************************************************
** Function Name: Timer_SystemTickTimerInit()
** Description  : The function shall be init system tick timer
** Parameter    : None
** Return       : None
** Remark       : global
************************************************************/
void Timer_SystemTickTimerInit
(
  void
);
/***********************************************************
** Function Name: Timer_DelayMs()
** Description  : The function makes delay minisecond
** Parameter    : None
** Return       : None
** Remark       : global
************************************************************/
__IO void Timer_DelayMs
(
  uint32_t time
);
/***********************************************************
** Function Name: Timer_DelayUs()
** Description  : The function make delay microsecond
** Parameter    : None
** Return       : None
** Remark       : global
************************************************************/
__IO void Timer_DelayUs
(
  uint32_t nTime
);
/*******************************************************************************
** Function name: Timer_GetCurrentValue( void )
** Description  : The function gets current value of Timer register
** Parameter    : None
** Return value : None
** Remarks      : global variables used, side effects
*******************************************************************************/
uint32_t Timer_GetCurrentValue
(
	void
);
#endif /* __DV_TIM_H__ */
